﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Borton.Beans
{
    class Szemely:Bean
    {
        public Szemely()
        {
            tableName = "Szemely";
            fields = new Field[] {
                new Field("id", FieldType.NUMBER),
                new Field("keresztnev", FieldType.STRING),
                new Field("vezeteknev", FieldType.STRING),
                new Field("kep", FieldType.STRING),
                new Field("szuletesidatum", FieldType.STRING),
                new Field("szuletesihely", FieldType.STRING),
                new Identifier("vegzettseg_id", typeof(Vegzettseg)),
                new Field("cim", FieldType.STRING),
                new Field("telefon", FieldType.STRING),
                new Field("email", FieldType.STRING)
            };
        }

        public override object Clone()
        {
            return new Szemely();
        }

        public override string getDisplayName()
        {
            return fields[1].getValueForDisplay() + " " + fields[2].getValueForDisplay();
        }
    }
}
